package com.mf.service;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;

import com.mf.dao.PictureDao;
import com.mf.daoImpl.PictureDaoImpl;
import com.mf.entity.Picture;
import com.mf.util.DButil;

public class PictureService {
	
	PictureDaoImpl picturdaoimpl=new PictureDaoImpl();
	
	public void add(Picture t){
		picturdaoimpl.add(t);
	}
	
	public void delete(Picture t){
		picturdaoimpl.delete(t);
	}
	
	public void update(Picture t){
		picturdaoimpl.update(t);
	}
	
	public Picture select(Picture t){
		return picturdaoimpl.select(t);
	}
	
	public List<Picture> SearchPicturesTypeByLike(String type){
		return picturdaoimpl.SearchPicturesTypeByLike(type);
	}
	
	public List<Picture> fuzzyQueryPictures(String nameLike) {
		return picturdaoimpl.fuzzyQueryPictures(nameLike);
	}

	public List<Picture> AllPicture(){
		return picturdaoimpl.AllPicture();
	}
	
	public Picture findPictureByRealname(String realname){
		return picturdaoimpl.findPictureByRealname(realname);
	}
	
//	public List<Picture> getOne(){
//		List<Picture> list=new ArrayList<Picture>();
//		return null;
//	
//	}
}
